package com.lqwu.mallchatserver.user.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lqwu.mallchatserver.user.model.entry.UserBackpack;
import com.lqwu.mallchatserver.user.model.enums.IdempotentEnum;

import java.util.List;

/**
* @author 伍立权
* @description 针对表【user_backpack(用户背包表)】的数据库操作Service
* @createDate 2025-05-27 15:16:12
*/
public interface UserBackpackService extends IService<UserBackpack> {
    /**
     * 用户发放物品
     * @param uid
     * @param itemId
     * @param idempotentEnum
     * @param businessId
     */
    void acquireItem(Long uid, Long itemId, IdempotentEnum idempotentEnum,String businessId) throws InterruptedException;

    /**
     * 批量获取用户背包物品
     * @param uidList
     * @param allItemIds
     * @return
     */
    List<UserBackpack> getByItemIds(List<Long> uidList, List<Long> allItemIds);
}
